package com.xiaolun.mapper;

import com.xiaolun.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderMapper {
    List <Order> findAll(); //查询所有

    int addOrderHome(Order order); //信息列表添加
    List<Order> findOrderPage(int page,int limit); //分页查询page当前页，limit每页条数
    int deleteOrder(int id);   //删除
    int updateOrder(Order order); //更新数据
    List<Order> SearchOrder(Order order); //搜索
}
